package com.example.day1102;

/**
 * @author Lenovo
 */
public class Animal {
    private int age = 20;
    private final String city = "北京";

    public Animal() {
    }

    public Animal(int age) {
        this.age = age;
    }

    public void show() {
        age = 40;
        System.out.println("age=" + age);
        System.out.println("city=" + city);
    }

    public void eat() {

    }
}
